#pragma once

#include "znx_defs.h"

static inline void
znx_srandom(unsigned int seed)
{
    srandom(seed);
}

static inline int64_t
znx_random()
{
    return random();
}

static inline int64_t
znx_random_n(int64_t max_n)
{
    return (znx_random() % max_n);
}